﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x02000097 RID: 151
	internal class UInt16Int16 : IInt16Decoder
	{
		// Token: 0x06000278 RID: 632 RVA: 0x0000B5D0 File Offset: 0x000099D0
		private UInt16Int16()
		{
		}

		// Token: 0x06000279 RID: 633 RVA: 0x0000B5D8 File Offset: 0x000099D8
		public short Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			return checked((short)(((int)bytes[offset + 1] << 8) + (int)bytes[offset + 2]));
		}

		// Token: 0x040000BA RID: 186
		internal static readonly IInt16Decoder Instance = new UInt16Int16();
	}
}
